package com.zznzzn.myweb.mapper;

import com.zznzzn.myweb.pojo.Item;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ItemMapper {
    public List<Item> queryItemByUser(@Param("uuid") String uuid,@Param("status") int level);
    public Item queryItemBuItemId(@Param("itemid") String itemid);
    public int insertItem(Item item);
    public int updateItem(Item item);
    public int updateWants(@Param("wants") int wants,@Param("itemid")String itemid);
    public int updateStatus(@Param("status") int status,@Param("itemid") String itemid);
    public int deleteItem(@Param("itemid") String itemid);
    public List<Item> queryAllItemByTime(@Param("offset") int offset,@Param("size") int size,@Param("uuid") String uuid);
    public int itemCounts(@Param("uuid") String uuid,@Param("status") int status);

}
